﻿<phone:PhoneApplicationPage 
    x:Class="TwitterClientSample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    shell:SystemTray.IsVisible="True">

    <Grid>
        <StackPanel Background="Transparent">
            <Button Click="GetRequestTokenButton_Click" Content="GetRequestToken/OpenAuthorizeUrl"></Button>
            <TextBlock Name="AuthorizedTextBlock">UnAuthorized</TextBlock>
            <StackPanel Orientation="Horizontal">
                <TextBlock>user_id :</TextBlock>
                <TextBlock Name="UserIdTextBlock"></TextBlock>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock>screen_name :</TextBlock>
                <TextBlock Name="ScreenNameTextBlock"></TextBlock>
            </StackPanel>
            <Button Name="GetTimeLineButton" Click="GetTimeLineButton_Click" Content="GetTimeLine"></Button>
            <ListBox Name="TimeLineViewListBox" Width="auto" Height="120" />
            <StackPanel Orientation="Horizontal">
                <TextBlock>PostString :</TextBlock>
                <TextBox Name="PostTextBox" Width="250"></TextBox>
                <Button Name="PostButton" Width="100" Click="PostButton_Click" Content="Post"></Button>
            </StackPanel>
            <Button Name="StreamingStartButton" Click="StreamingStartButton_Click" Content="StreamingAPI Read Start"></Button>
            <Button Name="StreamingStopButton" Click="StreamingStopButton_Click" Content="StreamingAPI Read Stop"></Button>
            <ListBox Name="StreamingViewListBox" Width="auto" Height="120" />
            <Button Content="ImageUpload" Height="71" Name="ImageUploadButton" Width="Auto" Click="ImageUploadButton_Click" />
        </StackPanel>
        <Grid Visibility="Collapsed" Name="BrowserAuthorize">
            <Grid.RowDefinitions>
                <RowDefinition  />
                <RowDefinition Height="100"  />
            </Grid.RowDefinitions>

            <phone:WebBrowser Name="webBrowser1" />
            <StackPanel Grid.Row="1" Orientation="Horizontal" Background="Violet">
                <TextBlock Text="PinCode:"></TextBlock>
                <TextBox Name="PinCodeTextBox" Width="200"></TextBox>
                <Button Content="Enter" Click="GetAccessTokenButton_Click"></Button>
            </StackPanel>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>